<include file="Public:searchBar" />
<div class="pageContent">
    <include file="Public:panelBar" />
    <table class="table" width="100%" layoutH="112">
        <thead>
            <thead>
                <tr>
                    <th width="150px">
                        结算月份
                    </th>
                    <th>
                        总佣金(元)
                    </th>
                    <th>
                        结算状态
                    </th>
                    <th>
                        结算时间
                    </th>
                    <th width="180">
                        操作
                    </th>
                </tr>
            </thead>
        </thead>
        <tbody>
            <volist name="datalist" id="vo">
                <tr id="list_{$vo[$mpk]}" rel="{$vo[$mpk]}">
                    <td>
                        {$vo.year}-{$vo.month}
                    </td>
                    <td>
                        {$vo.fee}
                    </td>
                    <td>
                        <eq name="vo.is_settled" value="0">
                            未结算<else/>已结算
                        </eq>
                    </td>
                    <td>
                        <eq name="vo.is_settled" value="1">
                            {$vo.settled|date="y-m-d H:i:s",###}<else/>-
                        </eq>
                    </td>
                    <td>
                        <a href="{:U('view?'.$mpk.'='.$vo[$mpk])}" class="tbutton" target="navTab"  rel="{$mdomid}_view" title="查看佣金结算">查看</a>
                        <eq name="vo.is_settled" value="0">
                            <a href="{:U('settled')}"  target="ajaxTodo" callback="doAjaxDone" title="确定要结算吗?" data="{$mpk}={$vo[$mpk]}" class="tbutton">结算</a>
                        </eq>
                    </td>
                </tr>
            </volist>
        </tbody>
    </table>
    <include file="Public:pageBar" />
</div>